<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $this->title;?></title>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/css/main.css" />
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/jquery.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/load.js"></script>
<!--时间选择器-->
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/lang/cn_utf8.js"></script>
<script language="javascript" src="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-setup.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseUrl;?>/files/admin/js/date/calendar-blue.css" />

</head>

<body>
	<div id="main">
		<div id="topMenu">
			<div id="navigation">当前位置：客户端装机列表</div>
			<div id="topOtherMenu"></div>
		</div>
		<div id="body">
			<div id="search">
				<form id="searchForm" name="searchForm" method="post" action="<?php echo $this->projectUrl();?>">
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td>
								机器号：<input name="udid" type="text" class="input" id="udid" size="20" value="<?php echo htmlspecialchars($this->vars['udid']);?>" />
								&nbsp;操作系统：<input name="osName" type="text" class="input" id="osName" size="20" value="<?php echo htmlspecialchars($this->vars['osName']);?>" />
								&nbsp;推广ID：<input name="sourceId" type="text" class="input" id="sourceId" size="20" value="<?php echo htmlspecialchars($this->vars['sourceId']);?>" />
								&nbsp;推广子ID：<input name="sourceSubId" type="text" class="input" id="sourceSubId" size="20" value="<?php echo htmlspecialchars($this->vars['sourceSubId']);?>" /></td>
						</tr>
						<tr>
							<td>
								IP地址：<input name="ip" type="text" class="input" id="ip" size="20" value="<?php echo htmlspecialchars($this->vars['ip']);?>" />
								&nbsp;时间范围：<input name="startTime" type="text" class="input" id="startTime" size="20" value="<?php echo htmlspecialchars($this->vars['startTime']);?>" />
								<script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d %H:%M:00","firstDay":0,"showsTime":true,"showOthers":false,"timeFormat":24,"inputField":"startTime","button":"startTime"});</script> 

								-
								<input name="endTime" type="text" class="input" id="endTime" size="20" value="<?php echo htmlspecialchars($this->vars['endTime']);?>" />
								<script type="text/javascript">Calendar.setup({"ifFormat":"%Y-%m-%d %H:%M:00","firstDay":0,"showsTime":true,"showOthers":false,"timeFormat":24,"inputField":"endTime","button":"endTime"});</script> 
								&nbsp;
								<input name="search" type="submit" id="search2" value="查找" class="button" />
							</td>
						</tr>

					</table>
				</form>
			</div>
			<div id="content">
				<form id="listForm" name="listForm" method="post" action="">
					<table class="table">
						<tr class="subject">
							<td>机器号</td>
							<td>操作系统</td>
							<td>客户端版本</td>
							<td>设备</td>
							<td>SourceName</td>
							<td>推广ID</td>
							<td>推广子ID</td>
							<td>网络类型</td>
							<td>运营商</td>
							<td>通信协议端版本</td>
							<td>时间</td>
							<td>IP</td>
							<td>IP所在地区</td>
							<td>UA</td>
						</tr>
<?php foreach($this->rows as $row) {?>
						<tr class="dataLine">
							<td><input name="textfield" type="text" id="textfield" value="<?php echo $row['udid'];?>" size="10" readonly="readonly" /></td>
							<td><?php echo $row['osName'];?>,<?php echo $row['osVersion'];?></td>
							<td><?php echo $row['appVersion'];?></td>
							<td><?php echo $row['deviceName'];?></td>
							<td><?php echo isset($this->sourcerow[$row['sourceId']][$row['sourceSubId']]) ? $this->sourcerow[$row['sourceId']][$row['sourceSubId']] : '';?></td>
							<td><?php echo $row['sourceId'];?></td>
							<td><?php echo $row['sourceSubId'];?></td>
							<td><?php echo $row['wanType'];?></td>
							<td><?php echo $row['carrier'];?></td>
							<td><?php echo $row['ver'];?></td>
							<td title="<?php echo $row['addTime'];?>"><?php echo date("m-d H:i", strtotime($row['addTime']));?></td>
							<td><?php echo $row['ip'];?></td>
							<td><?php echo $row['ipProvince'];?>/<?php echo $row['ipCity'];?></td>
							<td><input name="textfield2" type="text" id="textfield2" value="<?php echo $row['userAgent'];?>" readonly="readonly" size="10" /></td>
						</tr>
<?php
}
?>
					</table>
<table class="controlTable">
						<tr>
							<td colspan="6" align="right" class="paginator"><?php echo $this->pageString;?></td>
					</tr>
				  </table>
				</form>
			</div>
		</div>
	</div>
</body>
</html>